﻿<%= stylesheet_link_tag 'coderay' %>

<div class="blog">
	
    <div class="date" title="<%= blog.created_at.strftime('%Y-%m-%d')%>">
        <p>
            <span class="mese"><%= blog.created_at.strftime('%b') %></span>
            <span class="giorno"><%= blog.created_at.strftime('%d') %></span>
            <span class="anno"><%= blog.created_at.strftime('%Y') %></span>
        </p>
    </div>
	
    <h2 class="storytitle"><%= link_to h(blog.title), blog_path(blog.id) %></h2>
    <div class="meta">
        <span class="tags">
		Tag: <%= blog.tag_list.map{|tag|link_to(tag, tag_path(u(tag)))}.join(', ') %>
        </span>
        &#8212;<span class="user"><%= link_to h(blog.user.login), "http://#{blog.user.login}.beyondrails.com", :style => "text-decoration: none" %> @ <%= blog.created_at.strftime("%I:%M %p") %>
        </span>
    </div>
	
    <div class="storycontent">
        <div class="CodeRay">
            <%= bbcode2html blog.content %>
        </div>
    </div>
	
	<div class="feedback">
        <p>
            <%= link_to "评论 (#{blog.blog_comments_count})", blog_path(blog.id) + "#comments" %>
        </p>
    </div>

</div>

